| Conditions | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import {nc_fetch_json} from 'nextcloud_fetch'; |
||
| 61 | export function disable (gateway) { |
||
| 62 | let url = OC.generateUrl('/apps/twofactor_gateway/settings/{gateway}/verification', { |
||
| 63 | gateway: gateway |
||
| 64 | }) |
||
| 65 | |||
| 66 | return nc_fetch_json(url, { |
||
| 67 | method: 'DELETE' |
||
| 68 | }).then(function (resp) { |
||
| 69 | if (resp.ok) { |
||
| 70 | return resp.json(); |
||
| 71 | } |
||
| 72 | throw resp; |
||
| 73 | }) |
||
| 74 | } |
||
| 75 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.